package pl.creativecoder.mixplus.manager;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class SmsActivity extends Activity {
	Button smsAllButton, smsPlusButton;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getWindow().setWindowAnimations(android.R.style.Animation_Translucent);
		setContentView(R.layout.sms);
		setupView();
	}
	
	private void setupView() {
		smsAllButton = (Button)findViewById(R.id.smsAllBtn);
		smsAllButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent callActivity = new Intent(Intent.ACTION_CALL);
				callActivity.setData(Uri.parse("tel: *121*11*35"+Uri.encode("#")));
				startActivity(callActivity);				
			}
		});
		smsPlusButton = (Button)findViewById(R.id.smsPlusBtn);	
		smsPlusButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent callActivity = new Intent(Intent.ACTION_CALL);
				callActivity.setData(Uri.parse("tel: *121*11*36"+Uri.encode("#")));
				startActivity(callActivity);	
			}
		});
	}	
	
}
